#pragma once
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
typedef struct Stack {
	int* data;
	int top;
	int capacity;
}ST;
void STInit(ST* ps);
void STDestroy(ST* ps);
void STPush(ST* ps, int x);
void STPop(ST* ps);
int STEmpty(ST* ps);
int STTop(ST* ps);


void BubbleSort(int* a, int n);

void InsertSort(int* a, int n);

void SelectSort(int* a, int n);

void ShellSort(int* a, int n);

void HeapSort(int* a, int n);

void CountSort(int* a, int n);

void QuickSort1(int* a, int begin, int end);

void QuickSort2(int* a, int begin, int end);

void QuickSort3(int* a, int begin, int end);

void MergeSort(int* a, int n);

void QuickSortNONR(int* a, int begin, int end);

